package org.budo.support.java.collection;

/**
 * 起止时间对
 */
public class Pair<First, Second> {
    private First first;

    private Second second;

    public Pair() {}

    public Pair(First first, Second second) {
        this.first = first;
        this.second = second;
    }

    public First getFirst() {
        return first;
    }

    public void setFirst(First first) {
        this.first = first;
    }

    public Second getSecond() {
        return second;
    }

    public void setSecond(Second second) {
        this.second = second;
    }

    public String toString() {
        return super.toString() + ", first=" + this.getFirst() + ", second=" + this.getSecond();
    }
}